import Vue from "vue";

import "normalize.css/normalize.css"; // A modern alternative to CSS resets
import axios from "axios";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/en"; // lang i18n
import zhLocale from "element-ui/lib/locale/lang/zh-CN";
import "@/styles/index.scss"; // global css
import "element-ui/lib/theme-chalk/display.css";
import App from "./App";
import store from "./store";
import router from "./router";
import "@/icons"; // icon
import "@/permission"; // permission control
/**
 * If you don't want to use mock-server
 * you want to use MockJs for mock api
 * you can execute: mockXHR
 *
 * Currently MockJs will be used in the production environment,
 * please remove it before going online! ! !
 */

import { mockXHR } from "../mock";
if (process.env.NODE_ENV === "production") {
  mockXHR();
}
axios.defaults.baseURL = "http://new_xhzc.api.lnxinlongjia.com/index.php"; //正式中仓新版接口
Vue.prototype.imgHttp = "http://new_xhzc.api.lnxinlongjia.com"; //正式图片接口

// axios.defaults.baseURL = 'http://youhua2.xlj.wms.api.lnxinlongjia.com/index.php' //测试中仓新版接口
// Vue.prototype.imgHttp = 'http://youhua2.xlj.wms.api.lnxinlongjia.com'//测试图片接口

// axios.defaults.baseURL = 'http://192.168.207.21/index.php' //测试中仓新版接口
// Vue.prototype.imgHttp = 'http://192.168.207.21'//测试图片接口

axios.defaults.baseURLs = " http://221.180.226.40:7766/Compass"; //数据测试接口
Vue.prototype.$axios = axios;
// set ElementUI lang to EN
Vue.use(ElementUI, { zhLocale });
Vue.config.productionTip = false;
new Vue({
  el: "#app",
  router,
  store,
  render: h => h(App)
});
